第 4 步:我们的main()几乎完成了!让我们调用给定的create_landscape函数。

  • ,将Function Call拖到main()的内部和底部。
  • my_function()更改为create_landscape()
  • 这会在我们的星星生成一个分层的景观,只是为了让我们的景观看起来更逼真。
  • 运行以查看“已完成”的项目。 (我们还没有完成。)单击提交接下来继续。

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)